package com.cac.demo.service.partSalesReturn;

import com.cac.demo.entity.materialScan.WmsDeliverPlanDTO;
import com.cac.demo.entity.wmsReturnApply.WmsReturnApplyDTO;
import com.cac.demo.util.adapter.QueryReqBean;
import com.cac.demo.util.adapter.QueryRespBean;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface PartSalesReturnService {
    /*插入数据到退货申请表中*/
    public int insertWmsReturnApply(Map map);
    /*查询退货单零件数据*/
    public QueryRespBean<WmsReturnApplyDTO> selectReturnApply(QueryReqBean<WmsReturnApplyDTO> queryReqBean, String orderBy, String keyWords, Date startTime, Date endTime);
    /*查询退货单成品数据*/
    public QueryRespBean<WmsReturnApplyDTO> selectReturnApplyProduct(QueryReqBean<WmsReturnApplyDTO> queryReqBean, String orderBy, String keyWords, Date startTime, Date endTime);
    /*查询零件配送单数据*/
    public QueryRespBean<WmsDeliverPlanDTO> selectDeliverPlan(QueryReqBean<WmsDeliverPlanDTO> queryReqBean, String orderBy, String keyWords);
    /*查询成品配送单数据*/
    public QueryRespBean<WmsDeliverPlanDTO> selectDeliverPlanProduct(QueryReqBean<WmsDeliverPlanDTO> queryReqBean, String orderBy, String keyWords);
    /*修改退货单数据*/
    public int updateWmsReturnApply(WmsReturnApplyDTO wmsReturnApplyDTO);
    /*更新数据*/
    public WmsReturnApplyDTO getUpdateDto(WmsReturnApplyDTO wmsReturnApplyDTO);
    /*删除数据*/
    public int deleteWmsReturnApplyById(String wmsReturnApplyId);
    /*批量删除数据*/
    public int deleteWmsReturnApplyByIds(HashMap<String, Object> datas);
    /*提交退货单数据*/
    public int changeReturnType(String wmsReturnApplyId);
    /*改变退货状态*/
    public int changeReturnTypes(List<String> idlist);

    List<HashMap> searchWorkbinMaterial(HashMap map);

    int insertCemopWmsReturnApply(Map map);
}
